import request from '@/utils/request'

/**
 * 全部部楼栋数据
 */
export function housePropertyListAPI(data) {
  return request({
    method: 'GET',
    url: 'house/index',
    params: data
  })
}

// 获取楼栋栋数数据
export function showBuildingApi(data) {
  return request({
    url: '/house/building',
    params: data

  })
}
// 新增房产
export function NewPropertyAPI(data) {
  return request({
    method: 'POST',
    url: 'house/index',
    data: data
  })
}

// 删除单个楼栋数据
export function BuildingDelApi(id) {
  return request({
    method: 'DELETE',
    url: `house/index/${id}`
  })
}
/**
 * 单个楼栋数据
 */
export function singleLouDongAPI(id) {
  return request({
    method: 'GET',
    url: `house/index/${id}`
  })
}
// 新增房产
export function alterPropertyAPI(data) {
  return request({
    method: 'PUT',
    url: `house/index/${data.id}`,
    data: data
  })
}
